package controller

import "github.com/gin-gonic/gin"

func ToJson(context *gin.Context,code int,msg string,data interface{})  {
	context.JSON(code,gin.H{"code":code, "msg": msg, "data":data})
}
